package com.base.mapper.voipmapper;

import com.base.po.voip.SelfShopCategory;
import com.base.po.voip.SelfShopCategoryExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface SelfShopCategoryMapper {
    int countByExample(SelfShopCategoryExample example);

    int deleteByExample(SelfShopCategoryExample example);

    int deleteByPrimaryKey(String id);

    int insert(SelfShopCategory record);

    int insertSelective(SelfShopCategory record);

    List<SelfShopCategory> selectByExample(SelfShopCategoryExample example);

    SelfShopCategory selectByPrimaryKey(String id);
    
    List<SelfShopCategory> selectByParentIDAndShopID(@Param("parentid") String parentid, @Param("shopid") String shopid);
    
    List<SelfShopCategory> selectByLevel1(@Param("parentid") String parentid, @Param("shopid") String shopid);
    
    List<SelfShopCategory> selectByTopid(String topid);

    int updateByExampleSelective(@Param("record") SelfShopCategory record, @Param("example") SelfShopCategoryExample example);

    int updateByExample(@Param("record") SelfShopCategory record, @Param("example") SelfShopCategoryExample example);

    int updateByPrimaryKeySelective(SelfShopCategory record);

    int updateByPrimaryKey(SelfShopCategory record);
}